import { defineStore } from "pinia";
import request from "@/utils/request";

export const useDishesStore = defineStore("dishes", {
  state: () => ({
    dishesData: [],
  }),
  actions: {
    async requestData() {
      const { data } = await request({
        url: "/dishes",
        method: "GET",
      });
      this.dishesData = data;
    },
  },
});
